#ifndef __RECORD_MAP_H_
#define __RECORD_MAP_H_

typedef struct knode
{
    int key;
    struct knode *next;
} KNode;

typedef struct kmap
{
    KNode *head;
} KMap;

/* 函数声明 */
void add_To_KMap(KMap *map, int sockfd);
KNode *get_by_key(KMap *map, int id);
void remove_by_key(KMap *map, int id);
int is_keymap_null(KMap *map);

#endif